/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Du Zhengchi
 * Date: 2024-04-09
 * Time: 20:29
 */
public class Date {
        private int year;
        private int month;
        private int day;

    public Date(int year, int month, int day){
        System.out.println(this.year);
        System.out.println(this.month);
        System.out.println(this.day);
    }

//        public Date(int year, int month, int day) {
//            this.year = year;
//            this.month = month;
//            this.day = day;
//        }

        public int getYear() {
            return year;
        }

        public void setYear(int year) {
            this.year = year;
        }

        public int getMonth() {
            return month;
        }

        public void setMonth(int month) {
            this.month = month;
        }

        public int getDay() {
            return day;
        }

        public void setDay(int day) {
            this.day = day;
        }

        public static void main(String[] args) {
            Date d = new Date(2021,6,9);
        }


}
